#! usr/bin/env python

import rospy
from geometry_msgs.msg import Twist

if __name__ == "__main__":
    rospy.init_node("turtle")
    publisher = rospy.Publisher("/turtle1/cmd_vel",Twist,queue_size=10)
    twist = Twist()
    rate = rospy.Rate(10)
    twist.linear.x = 1.0
    twist.linear.y = 0.0
    twist.linear.z = 0.0
    twist.angular.z = 3.0
    twist.angular.x = 0.0
    twist.angular.y = 0.0

    while not rospy.is_shutdown():
        publisher.publish(twist)
        rate.sleep()